#!/usr/bin/bash

curdir=$(
    cd "$(dirname "$0")" || exit
    pwd
)
cd $curdir

export REGISTRY_ADDRESS=http://192.168.2.155
export NACOS_ADDRESS=192.168.2.155
export NACOS_NAMESPACE=51039838-24a2-44ea-b54a-e6e20ae988e8
export REGISTRY_NAMESPACE=51039838-24a2-44ea-b54a-e6e20ae988e8
export REGISTRY_USER=nacos
export REGISTRY_PASS=nacos

cd sop && nohup java -Dfile.encoding=utf-8 -Dserver.port=8081 -Dserver.params.connection.external.file=/environment/springboot2/sop -Dspring.datasource.dbconfig.url=jdbc:mysql://192.168.2.182:3306/sopcfg\?serverTimezone=UTC\&autoReconnect=true\&useSSL=false\&characterEncoding=UTF-8 -Dspring.datasource.dbconfig.username=root -Dspring.datasource.dbconfig.password=123456 -Dspring.datasource.dbconfig.has-encrypt=false -Dspring.datasource.dblog.url=jdbc:mysql://192.168.2.182:3306/sopcfg\?serverTimezone=UTC\&autoReconnect=true\&useSSL=false -Dspring.datasource.dblog.username=root -Dspring.datasource.dblog.password=123456 -Dspring.datasource.dblog.has-encrypt=false -jar app.jar &

cd sgp && nohup java -Dfile.encoding=utf-8 -Dserver.port=8083   -Dspring.datasource.url=jdbc:mysql://192.168.2.182:3306/sgp\?serverTimezone=UTC\&autoReconnect=true\&useSSL=false\&characterEncoding=UTF-8 -Dspring.datasource.data-username=root -Dspring.datasource.data-password=123456 -jar app.jar &

cd fop-cloud-nacos && nohup java -Dfile.encoding=utf-8 -Dserver.port=8082   -Ddatasource.url=jdbc:mysql://192.168.2.182:3306/fop\?serverTimezone=UTC\&autoReconnect=true\&useSSL=false\&characterEncoding=UTF-8 -Ddatasource.username=root -Ddatasource.password=123456 -jar app.jar &

cd rep-cloud-nacos && nohup java -Dfile.encoding=utf-8 -Dserver.port=8084   -Dspring.datasource.url=jdbc:mysql://192.168.2.182:3306/fop\?serverTimezone=UTC\&autoReconnect=true\&useSSL=false\&characterEncoding=UTF-8	-Ddatasource.username=root -Ddatasource.password=123456 -jar app.jar &

cd messagecenter && nohup java -Dfile.encoding=utf-8 -Dserver.port=8085   -Dspring.datasource.default.url=jdbc:mysql://192.168.2.182:3306/emqp_message\?serverTimezone=UTC\&autoReconnect=true\&useSSL=false\&characterEncoding=UTF-8	-Dspring.datasource.default.username=root -Dspring.datasource.default.tryThis=123456 -jar app.jar &

cd dmp-frmc && nohup java -Dfile.encoding=utf-8 -Dserver.port=8087   -Dspring.datasource.default.url=jdbc:mysql://192.168.2.182:3306/frmc\?serverTimezone=UTC\&autoReconnect=true\&useSSL=false\&characterEncoding=UTF-8	-Dspring.datasource.default.username=root -Dspring.datasource.default.tryThis=123456 -jar app.jar &

cd  ocsp-dictionary-atomic/ocsp-dictionary-atomic-0.0.1-SNAPSHOT && nohup java -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8088   -jar boot/ocsp-dictionary-atomic-0.0.1-SNAPSHOT.jar &

cd  ocsp-dictionary-business/ocsp-dictionary-business-0.0.1-SNAPSHOT && nohup java -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8089   -jar boot/ocsp-dictionary-business-0.0.1-SNAPSHOT.jar &

cd  ocsp-form-admin-business/ocsp-form-admin-business-0.0.1-SNAPSHOT && nohup java -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8090   -jar boot/ocsp-form-admin-business-0.0.1-SNAPSHOT.jar &

cd  ocsp-form-atomic/ocsp-form-atomic-0.0.1-SNAPSHOT && nohup java  -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8091   -jar boot/ocsp-form-atomic-0.0.1-SNAPSHOT.jar &

cd  ocsp-form-business/ocsp-form-business-0.0.1-SNAPSHOT && nohup java -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8092   -jar boot/ocsp-form-business-0.0.1-SNAPSHOT.jar &

# cd  ocsp-gateway-runtime/ocsp-gateway-runtime-0.0.1-SNAPSHOT && nohup java -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8094   -jar boot/ocsp-gateway-runtime-0.0.1-SNAPSHOT.jar &

cd  ocsp-investigate-center/ocsp-investigate-center-0.0.1-SNAPSHOT && nohup java -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8095   -jar boot/ocsp-investigate-center-0.0.1-SNAPSHOT.jar &

cd  ocsp-menu-admin-business/ocsp-menu-admin-business-0.0.1-SNAPSHOT && nohup java -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8096   -jar boot/ocsp-menu-admin-business-0.0.1-SNAPSHOT.jar &

cd  ocsp-menu-atomic/ocsp-menu-atomic-0.0.1-SNAPSHOT && nohup java -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8097   -jar boot/ocsp-menu-atomic-0.0.1-SNAPSHOT.jar &

cd  ocsp-menu-business/ocsp-menu-business-0.0.1-SNAPSHOT && nohup java -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8098   -jar boot/ocsp-menu-business-0.0.1-SNAPSHOT.jar &

cd  ocsp-project-admin-business/ocsp-project-admin-business-0.0.1-SNAPSHOT && nohup java -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8099   -jar boot/ocsp-project-admin-business-0.0.1-SNAPSHOT.jar &

cd  ocsp-project-atomic/ocsp-project-atomic-0.0.1-SNAPSHOT && nohup java -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8100   -jar boot/ocsp-project-atomic-0.0.1-SNAPSHOT.jar &

cd  ocsp-gateway-route-atomic/ocsp-gateway-route-atomic-0.0.1-SNAPSHOT && nohup java -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8101   -jar boot/ocsp-gateway-route-atomic-0.0.1-SNAPSHOT.jar &

cd  ocsp-securitydb-atomic/ocsp-securitydb-atomic-0.0.1-SNAPSHOT && nohup java -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8103   -jar boot/ocsp-securitydb-atomic-0.0.1-SNAPSHOT.jar &

cd  ocsp-sequence-atomic/ocsp-sequence-atomic-0.0.1-SNAPSHOT && nohup java -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8104   -jar boot/ocsp-sequence-atomic-0.0.1-SNAPSHOT.jar &

cd  ocsp-gateway-admin-business/ocsp-gateway-admin-business-0.0.1-SNAPSHOT && nohup java -Xbootclasspath/a:./config/:./lib/ -Dfile.encoding=utf-8 -Dserver.port=8105   -jar boot/ocsp-gateway-admin-business-0.0.1-SNAPSHOT.jar &

